package cn.fl.collection.service;

import cmm.mid.core.framework.page.DataResultVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.collection.condition.RskCltAuthQC;
import cn.fl.collection.vo.RskCltAuthRcvAplVO;
import cn.fl.collection.vo.RskCltAuthVO;

import java.util.List;

/**
 * @Description: 委外催收表 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface IRskCltAuthService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public RskCltAuthVO selectById(Long id)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(RskCltAuthVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(RskCltAuthVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    Pager searchListPage(Pager page)throws BaseException;

	/**
	 * 分页查询委外分案数据
	 * @param page
	 * @return
	 */
	Pager searchRskCltAuthListPage(Pager page) throws BaseException;

    /**
     * 获取委外催收申请数据及部分催收数据
     * @param applyId
     * @return
     * @throws BaseException
     */
    RskCltAuthRcvAplVO getCltAuthApl4Flow(Long applyId) throws BaseException;

    /**
     * 修改委外催收申请数据
     * @param rskCltAuthRcvAplVO
     * @throws BaseException
     */
	boolean modifyRskCltAuthRcvApl(RskCltAuthRcvAplVO rskCltAuthRcvAplVO) throws BaseException;

	/**
	 * 校验数据
	 */

	DataResultVO verifyRskCltAuth(RskCltAuthVO entity,DataResultVO resultVO);

	RskCltAuthVO selectRskCltAuthByPaySchId(RskCltAuthQC rskCltAuthQC);

	List<RskCltAuthVO> searchList(RskCltAuthQC rskCltAuthQC);

	/**
	 * 分页查询委外催收数据
	 * @param page
	 * @return
	 */
	Pager searchRskCltAuthCollectionListPage(Pager page) throws BaseException;

}
